//==============================================================================
//
// File: AddFavoriteDialog.h
// Project: Browser
// Author(s): Matthias Van Eeghem (matthias@van-eeghem.com)
// License: See LICENSE in root directory
//
// The AddFavorite dialog allows a user to add a server to the favorites list.
//
//==============================================================================

#ifndef ADDFAVORITEDIALOG_H
#define ADDFAVORITEDIALOG_H

#include "MainWindow.h"

namespace Ui
{
    class AddFavorite;
}

class AddFavorite : public QDialog
{
    Q_OBJECT

    Ui::AddFavorite * ui;
    // The reference to the MainWindow
    MainWindow * m_pMainWindow;
    
    public:
    // Constructor and destructor
    AddFavorite(QWidget * parent, MainWindow * mainWindow);
    ~AddFavorite();
    
    private slots:
    // Called when the "OK" button is clicked
    void on_okButton_clicked();
    // Called when the "Cancel" button is clicked
    void on_cancelButton_clicked();
};

#endif
